package cn.edu.tju.fctl.service;

import cn.edu.tju.fctl.rest.UserRest;
import cn.edu.tju.fctl.rest.VacationRest;
import cn.edu.tju.fctl.util.CORSResponseFilter;
import cn.edu.tju.fctl.util.LoggingResponseFilter;
import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.server.spring.scope.RequestContextFilter;

/**
 *
 * @author toddlt
 *
 */
public class VacationApplication extends ResourceConfig {

    /**
     * Register JAX-RS application components.
     */
    public VacationApplication(){
        register(RequestContextFilter.class);
        register(UserRest.class);
        register(VacationRest.class);
        register(JacksonFeature.class);
        register(LoggingResponseFilter.class);
        register(CORSResponseFilter.class);
    }
}
